package org.wk.news.enums;

import org.wk.core.common.view.GeneralResponseCode;

public enum ResponseCode implements GeneralResponseCode{

	NEWS_NOT_EXIST("news_not_exist","新闻不存在"),
	HAS_PRAISED("has_praised","已经点过赞");
	private String code;
	private String message;

	private ResponseCode(String code, String message) {
		this.code = code;
		this.message = message;
	}

	
	/* (非 Javadoc)
	 * <p>Title: getMessage</p>
	 * <p>Description: </p>
	 * @return
	 * @see org.wk.core.common.exception.GeneralExceptionCode#getMessage()
	 */ 
	
	@Override
	public String getMessage() {
		// TODO Auto-generated method stub
		return message;
	}

	
	/* (非 Javadoc)
	 * <p>Title: getCode</p>
	 * <p>Description: </p>
	 * @return
	 * @see org.wk.core.common.exception.GeneralExceptionCode#getCode()
	 */ 
	
	@Override
	public String getCode() {
		// TODO Auto-generated method stub
		return code;
	}


}
